﻿using System;
using DevelopTool.Common;
using DevelopTool.Model.TipsModels;
using Quartz;

namespace DevelopTool.Bll.TipsBlls.Jobs
{
    public class TipsJob : IJob
    {
        public void Execute(IJobExecutionContext context)
        {
            try
            {
                Tips tips = context.JobDetail.JobDataMap.Get("tips") as Tips;//任务参数

                if (Setting.System.SendMsgModule.Contains("Tips"))
                    FeiShuMsgHelper.SendCardMsgAsync(tips.Text, $"事项提醒-{tips.NodeName}");

                new TipsShowForm(tips).ShowDialog();
            }
            catch (Exception ex)
            {
                LogHelper.WriteErrLog(ex);
            }
        }

    }
}
